package com.sentinel.controller;

import com.cacos.pojo.User;
import com.sentinel.service.Uservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
    @Autowired
    private Uservice uservice;

    @RequestMapping("/getUserById")
    public User getUserById(Integer id){
        return uservice.getUserById(id);
    }

}
